<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>留言</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link href="/sbm/css/table.css" rel="stylesheet" type="text/css" />

</head>

<body>
	<table width="74%" id="mytab" border="1" class="t1" align="center">
		<tr>
			<td align="right"><a href="IssueTracking/AddNote.jsp">添加一个留言</a>
			</td>
		</tr>
		<tr>
			<td align="center"><span class="errorAndmes"><s:actionerror
						cssStyle="font-family: Arial,Helvetica,sans-serif" /> </span>
			</td>
		</tr>
		<tr>
			<td align="left">&nbsp;&nbsp;&nbsp;&nbsp;项目“<s:property
					value="taskname" />”&nbsp;&nbsp;下&nbsp;&nbsp;工作包“<s:property
					value="wptitle" />”的留言</td>
		</tr>

	</table>
	<table width="74%" id="mytab" border="1" class="t1" align="center">
		<tr>
			<th width="5%">编号</th>
			<th width="12%">名称</th>
			<th width="12%">内容</th>
			<th width="5%">作者</th>
			<th width="11%">时间</th>
			<th width="6%">是否阅览</th>
			<th width="8%">附件数</th>
			<th width="15%">操作</th>
		</tr>
		<s:iterator value="notelist" id="note">
			<tr>
				<td align="center"><s:property value="#note.noteid" />
				</td>
				<td><s:property value="#note.title" /></td>
				<td><s:property value="#note.text" escape="false" />
				</td>
				<td><s:property value="#note.name" />
				</td>
				<td><s:property value="#note.date" /></td>
				<td align="center"><s:if test="#note.past == 0">√</s:if> <s:else>&nbsp;</s:else>
				</td>
				<td><s:property value="#note.attno" />
				</td>
				<td><a
					href="<s:url action="showallattachment">
    		<s:param name="note.noteid" value="#note.noteid">
    		</s:param>
    		</s:url>">
						查看附件 </a> &nbsp;&nbsp; <a
					href="<s:url action="showonenote">
    		<s:param name="note.noteid" value="#note.noteid"></s:param>
    		<s:param name="note.wpid" value="#note.wpid"></s:param>
    		</s:url>">
						修改 </a> &nbsp;&nbsp; <a
					href="<s:url action="deletenote">
			<s:param name="note.noteid" value="#note.noteid"></s:param>
			<s:param name="note.wpid" value="#note.wpid"></s:param>
			</s:url>"
					onclick="return confirm('确定删除？')?true:false;">删除 </a></td>
			</tr>
		</s:iterator>
		<tr>
			<td align="center" colspan="4">共<s:property
					value="#session.notetotalpage" />页&nbsp;&nbsp;&nbsp;第<s:property
					value="pageNow+1" />页&nbsp;&nbsp;&nbsp; <s:if test="pageNow > 0">
					<a
						href="<s:url action="showallnote"><s:param name="pageNow" value="pageNow-1" /><s:param name="note.wpid" value="#note.wpid"></s:param></s:url>">上一页</a>&nbsp;&nbsp;&nbsp;</s:if>
				<s:if test=" pageNow+1 != #session.notetotalpage">
					<a
						href="<s:url action="showallnote"><s:param name="pageNow" value="pageNow+1" /><s:param name="note.wpid" value="#note.wpid"></s:param></s:url>">下一页</a>
				</s:if>
			</td>
			<td colspan="4" align="right"><a href="showallwork">返回查看工作包</a>
			</td>
		</tr>
	</table>
</body>
</html>
